package com.world.schedule;

import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.stereotype.Component;

/**
 * 测试XxlJob定时执行器
 *
 * @author WangYX
 * @version 1.0.0
 * @date 2023/07/28 17:42
 */
@Component
public class DemoTask {

    /**
     * 简单任务示例（Bean模式）
     */
    @XxlJob("demoJobHandler")
    public void demoJobHandler() throws Exception {
        System.out.println("demoJobHandler");
    }


}
